Ninja Database Pro
Creating Tables
Basic Tasks > Creating Tables

Tables are automatically registered and created the first time a type is saved.  In the example below the table is created automatically during the first save.

 

C# Example:

 

Db db = new Db("MyDatabaseDirectory", "MyDatabaseName");

 

//Licensed Mode

//db.UserName = "John Smith 101224";

//db.LicenseKey = "aousdf832jasf==";

 

//Set before OpenDatabase. Default storage is IsolatedStorageDatabase. Other options are:

//db.Storage = new MemoryDatabase(); //In memory database

//db.Storage = new FileDatabase(); //Valid only for non Silverlight projects

 

Person person1 = new Person();

person1.Name = "Greg";

db.Save(person1);